home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / undoc.qb < prev    next >
Text File  |  1987-07-25  |  3KB  |  64 lines

  1. Undocumented features of Microsoft QuickBASIC 2.0, 2.01 & 3.0
  2.  
  3. 1.   EGA 43-line mode:
  4.  
  5.      QB2 and QB2.01 will work in EGA 43-line mode.  Using the MODE43.COM
  6.      program that came with QB3, I was able to run the editors of the
  7.      previous version in EGA 43-line mode.  All 43 lines are available for
  8.      editing purposes.  On the other hand, the execution and debug screens
  9.      only use the top 25 lines of the 43 available.
  10.      
  11.      MODE43 switches the EGA into 43-line mode via Function 11h of the
  12.      BIOS VIDEO interrupt 10h.
  13.  
  14. 2.   /F switch:
  15.  
  16.      Syntax:   qb /f filename
  17.                      or
  18.                qb filename /f
  19.  
  20.      This switch is equivalent to the "EXE" compile option.  It will
  21.      compile your source directly to an executable file.  The runtime
  22.      module, BRUNxxxx.EXE, is needed to run the executable file.  Other
  23.      switches can be used with /F.  Please note that the semi-colon
  24.      normally required to compile via the command line is NOT required in
  25.      this case.
  26.      
  27.      This switch bypasses the LINK step usually needed when compiling
  28.      programs via the command line.  I find this very useful when using
  29.      the MASM MAKE utility to re-compile program modules.
  30.  
  31. 3.   /Z switch:
  32.  
  33.      Syntax:   qb /z filename
  34.  
  35.      This switch is equivalent to the "MEMORY" compile option.  It will
  36.      compile your source to memory and run it.  Other switch can be used
  37.      with /Z.  As above, the semi-colon is not required.  Please note the
  38.      syntax.  It appears that switching the filename and the /Z switch
  39.      around does not work as it does with /F.
  40.  
  41. 4.   /N and /P switches:
  42.  
  43.      These switches are looked for by QB when parsing the command line and
  44.      appear to be ignored.
  45.  
  46. 5.   Metacommands:
  47.  
  48.      ALL of the metacommands from pre-2.0 versions of QB can be used with
  49.      the later versions.  The only metacommands mentioned in the QB2
  50.      manual are $INCLUDE, $DYNAMIC and $STATIC.  All of the other
  51.      metacommands are parsed from the program source and partially
  52.      processed.  However, it appears that the only one that does anything
  53.      meaningful is $MODULE.  $MODULE allows you to specify a name of the
  54.      compiled OBJ file other than the default, usually the same name as
  55.      the main source file.
  56.  
  57.  
  58. If any other undocumented features of QuickBASIC (any version) have been found,
  59. I would greatly appreciate hearing about them.
  60.  
  61. Michael Addy
  62. [74017,2437]
  63.